package com.example.martian.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IndexMapper {

    //币种展示
    List<Map<String,Object>> checkExchange();

    //更新汇率
    void updageRate(String exangeRate,String coin);

    //汇率查询 + 闪兑展示
    List<Map<String,Object>> showExchange();

    //查询用户所有信息
    List<Map<String,Object>> checkMoneyByAddress(String address);

    //查询账户余额
    List<Map<String,Object>> selectAllCoinMoney(String address);

    //轮播图
    List<Map<String, Object>> getBannerList(Integer type);

    int updateCoinMoney(Map<String, Object> param);

    //根据币种查询金额
    String selectMoneyByCoin(@Param("coin") String coin,@Param("address") String address);

    //修改闪兑后的金额
    void  updateCoinMoney(String address,String coin,String coinMoney);

    void  updateGetCoinMoney(String address,@Param("getCoin") String geiCoin,String add);

    String selectAddressUid(String address);
}
